	<div class="space-4"></div>
		<!-- #section:elements.form -->
		     #if(!ifEmpty(key))
				<input type="hidden" id="_#(key)" name="#(table??).#(key)" value="#(keyvalue??)"/>
			 #end
			 #for(x : col)		
			  #if(!ifEmpty(x.title))
					<div class="page-header-form">
						<h2>
							#(x.title??)
						#if(!ifEmpty(x.small))
							<small>
								<i class="fa fa-angle-double-right">
									#(x.small??)
								</i>
							</small>
						#end
						</h2>
					</div>
			   #else
			        #set(display = (like(x.type,"hidden")) ? "none" : "block")
			        #set(placeholder = (!ifEmpty(x.placeholder)) ? x.placeholder : ("暂无"+x.name))
					#if(x.newline??false)
					<div class="form-group" style="display:#(display??)">
				    #end
							<label class="col-sm-2 control-label no-padding-right" > #(x.name??) </label>			
							<div class="col-sm-#(x.length??3)">
							#if(x.type=="text"||x.type=="number"||x.type=="tel"||x.type=="email"||x.type=="url"||x.type=="qq"||x.type=="unionpay"||x.type=="credit"||x.type=="idcard")
								<input type="#(x.type??'text')" id="_#(x.index??)" name="#(table??x.table).#(x.index??)" #(x.required??) #(x.disabled??) #(x.readonly??) value="#(x.value??)" placeholder="#(placeholder??)" class="form-control" autocomplete="off"/>
							#else if(like(x.type,"hidden"))
								<input type="#(x.type??'hidden')" id="_#(x.index??)" name="#(table??x.table).#(x.index??)"  value="#(x.value??)" class="form-control" />
							#else if(x.type=="textarea")
								<textarea id="_#(x.index??)" style="height:#(x.height??'200px')" name="#(table??x.table).#(x.index??)" #(x.required??) #(x.disabled??) value="#(x.value??)" placeholder="#(placeholder??)" class="form-control"></textarea>
							#else if(x.type=="image")
								<img id="_#(x.index??)" data-type="image"  style="padding:2px; border:1px solid #ccc;cursor:pointer;width:#(x.width??'168px');height:#(x.height??'110px');" name="#(table??x.table).#(x.index??)" src="#(x.src??)"  onclick="window.open('#(x.src??)');"></img>
							#else if(like(x.type,"select_"))
				                #setLocal(num = getNumByType(x.type,"select_",""))
				                #select("dict",num,table+"."+x.index,x.value??'',x.tail??,x.required??'')
							#else if(like(x.type,"combo_"))
				                #setLocal(num = getNumByType(x.type,"combo_",""))
				                #@combo(x,num,placeholder)
							#else if(like(x.type,"dropdown_"))
				                #setLocal(num = getNumByType(x.type,"dropdown_",""))
				                #dropDown("dict",num,table+"."+x.index,x.value??0,x.tail??,x.required??'')
							#else if(x.type=="kindeditor")
							    #@kindeditor(x)
							    <script	type="text/javascript">
										_#(x.index)_initkindeditor();
								</script>
							#else if(x.type=="ueditor")
							    #@ueditor(x)
							    <script	type="text/javascript">
										_#(x.index)_initueditor();
								</script>
							#else if(x.type=="selectDiy")
							    #select("diy","",table+"."+x.index,x.value??'',x.tail??,x.required??'',x.source??,x.where??'')
							#else if(x.type=="dropdownDiy")
							    #dropDown("diy","",table+"."+x.index,x.value??0,x.tail??,x.required??'',x.source??,x.where??'')
							#else if(x.type=="selectDept")
							    #select("dept","",table+"."+x.index,x.value??'',x.tail??,x.required??'',"",x.where??'')
							#else if(x.type=="selectcascade")
							    #@select(x,placeholder)
							#else if(like(x.type,"cascade"))
							    #@cascade(x,placeholder)
							    <script	type="text/javascript">
										_#(x.index??)_initcascade();
								</script>
							#else if(x.type=="dropdownDept")
							    #dropDown("dept","",table+"."+x.index,x.value??0,x.tail??,x.required??'',"")
							#else if(x.type=="selectRole")
							    #select("role","",table+"."+x.index,x.value??'',x.tail??,x.required??'',"",x.where??'')
							#else if(x.type=="selectStatic")
							    #select("static","",table+"."+x.index,x.value??'',x.tail??,x.required??'',x.source??'',"")
							#else if(x.type=="dropdownRole")
							    #dropDown("role","",table+"."+x.index,x.value??0,x.tail??,x.required??'',"")
							#else if(x.type=="selectUser")
							    #select("user","",table+"."+x.index,x.value??'',x.tail??,x.required??'',"",x.where??'')
							#else if(x.type=="dropdownUser")
							     #dropDown("user","",table+"."+x.index,x.value??0,x.tail??,x.required??'',"")
							#else if(x.type=="checkbox")
							    #@checkbox(x)
							    <script	type="text/javascript">
									_#(x.index??)_initcheckbox();
							    </script>
							    
							#else if(x.type=="checkbox2")
							    #@checkbox2(x)
							#else if(x.type=="radios")
								 #@radios(x)    
							#else if(x.type=="date")
							    #@date(x)
							#else if(x.type=="laydate")
							    #@laydate(x)
							    <script	type="text/javascript">
							    	_#(x.index??)_initlaydate();
							    </script>
							#else if(x.type=="imgupload")
							    #@imgupload(x)
							    <script	type="text/javascript">
							    	_#(x.index??)_loadimgupload();
							    </script>
							#else if(x.type=="multiimgupload")
							    #@multiimgupload(x)
							    <script	type="text/javascript">
									_#(x.index??)_loadmultiimgupload();
							    </script>
							#else if(x.type=="fileupload")
							    #@fileupload(x)
							    <script	type="text/javascript">
									_#(x.index??)_loadfileupload();
							    </script>
							#else if(x.type=="uploadify")
							    #@uploadify()
							#else if(x.type=="upload")
							    #@upload(x)
							#else if(like(x.type,"opentree"))
							    #@opentree(x,placeholder)
							#else if(like(x.type,"selecttree"))
							    #@selecttree(x,placeholder)
							#else if(x.type=="span")
								<span id="_#(x.index??)" class="form-control" style="border:0px;#(x.style??)">#(x.value??)</span>
							#else
								<input type="text" id="_#(x.index??)" name="#(table??x.table).#(x.index??)" #(x.required??) #(x.disabled??) value="#(x.value??)" placeholder="#(placeholder??)" class="form-control" />
							#end
							</div>
							#if(x.length >= 5)
						</div>
							#end
				 	#if(!x.newline)
					 </div>
				    #end
				#end
			#end
	<div class="space-4"></div>